<?php
/**
 * Created by PhpStorm.
 * User: Adminstratot
 * Date: 2018/11/1
 * Time: 18:59
 */
namespace Admin\Model;
use Think\Model;

class PictureModel extends Model{
    protected $connection = 'DB_DATA';//连接默认数据库时不写即可

    protected $trueTableName = 'picture';
    protected $insertFields = 'aid,uid,intro,ori_img_thumb_img';

    protected $_auto = array(
        //array(完成字段1,完成规则,[完成条件,附加规则]),
        array('time','time',3,'function'),
    );

    protected $_validate = array(
        //array(验证字段1,验证规则,错误提示,[验证条件,附加规则,验证时间])
    );
}

?>